﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace BarCode.Common
{
    public class Consts
    {
        ///////////////////////////////////////////////////////////////////////////////////////////
        ////////结果Code
        ///////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// 成功
        /// </summary>
        public const int RET_SUCCESS = 0;

        /// <summary>
        /// 失败
        /// </summary>
        public const int RET_FAIL = -1;

        /// <summary>
        /// 不存在            
        /// </summary>
        public const int RET_NOTEXIST = 9;

        public const string CANCEL = "cancel";


        /// <summary>
        /// 链接成功标记
        /// </summary>
        public const string CONNECT_SUCCESS = "connect_successful";


        ///////////////////////////////////////////////////////////////////////////////////////////
        ////////数据库
        ///////////////////////////////////////////////////////////////////////////////////////////
        public const string MDB_BARCODE = "barcode.mdb";
        public const string MDB_CONFIGS = "configs.mdb";
        public const string MDB_TMP_OUTROOM = "tmp_outroom.mdb";
        public const string MDB_RSBOXID = "rsboxid.mdb";
        public const string MDB_TMPPACK = "tmp_packID.mdb";


        ///////////////////////////////////////////////////////////////////////////////////////////
        ////////配置文件  项目名
        ///////////////////////////////////////////////////////////////////////////////////////////
        public const string INI_FILE_NAME = "BarCode.ini";



        ///////////////////////////////////////////////////////////////////////////////////////////
        ////////声音常量
        ///////////////////////////////////////////////////////////////////////////////////////////
        public const uint MB_ICONASTERISK = 40;
        public const uint MB_ICONEXCLAMATION = 30;
        public const uint MB_ICONHAND = 10;
        public const uint MB_ICONQUESTION = 20;


        public const string PRINT_CODE = "000000020001";                  //打印命令
        public const string STATE_CODE1 = "000000020002";                 //正常工作状态
        public const string STATE_CODE2 = "000000020003";                 //补打工作状态
        public const string STATE_CODE3 = "000000020004";                 //补码命令
        // Public Const DELETE_CODE = "000000020004"                //撤消装车记录
        public const string JUDGE_CODE1 = "000000030001";                 //合格标志000000030001
        public const string VAVLE_CODE = "60000000000000000000000000";    //无阀门条码信息时的默认值

        public const string CLEAR_CODE = "999999999999";

        public const string JUDGE_CODE2 = "000000030002";             //返修标志
        public const string VCODE = "6";                             //机壳条码开头标志
        public const string JXCODE1 = "8";                             //机芯条码开头标志
        public const string JXCODE2 = "008";                             //机芯条码开头标志
        public const string JKCODE = "9";                            //机壳条码开头标志
        public const string JSQCODE = "7";                            //计数器条码开头标志
        public const string MPCODE1 = "2";                           //铭牌条码开头标志1
        public const string MPCODE2 = "4";                           //铭牌条码开头标志2

        // WorkPosition
        public const string WORK_POSITION_BASE = "base";
        public const string WORK_POSITION_JXJK = "jxjk";
        public const string WORK_POSITION_JK = "jk";
        public const string WORK_POSITION_PACK = "pack";

        // 打印浓度
        public const string PRINT_DENSITY = "10";

    }
}
